<%@ page import="cesar.example.Book" %>



<div class="fieldcontain ${hasErrors(bean: bookInstance, field: 'title', 'error')} required">
	<label for="title">
		<g:message code="book.title.label" default="Title" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="title" required="" value="${bookInstance?.title}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bookInstance, field: 'ISBN', 'error')} required">
	<label for="ISBN">
		<g:message code="book.ISBN.label" default="ISBN" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="ISBN" required="" value="${bookInstance?.ISBN}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bookInstance, field: 'person', 'error')} required">
	<label for="person">
		<g:message code="book.person.label" default="Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person" name="person.id" from="${cesar.example.Person.list()}" optionKey="id" required="" value="${bookInstance?.person?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bookInstance, field: 'releaseDate', 'error')} required">
	<label for="releaseDate">
		<g:message code="book.releaseDate.label" default="Release Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="releaseDate" precision="day"  value="${bookInstance?.releaseDate}"  />
</div>

